package com.xxl.job.admin.dao;

import com.xxl.job.admin.dto.CronJobModificationRecordDto;
import com.xxl.job.admin.dto.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.awt.print.Pageable;
import java.util.List;

@Mapper
public interface RecordDao {
    List<CronJobModificationRecordDto> findCronJobAuditLogs(@Param("serverIp") String serverIp,
                                                            @Param("jobDesc") String jobDesc,
                                                            @Param("modifiedBy") String modifiedBy,
                                                            @Param("command") String command,
                                                            @Param("offset") int offset,
                                                            @Param("size") int size);

    int countCronJobAuditLogs(@Param("serverIp") String serverIp,
                              @Param("jobDesc") String jobDesc,
                              @Param("modifiedBy") String modifiedBy,
                              @Param("command") String command);
}
